package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;

public class UserPayment {
    private Integer id;

    private Integer paymentId;
    private String paymentname;  //辅助列

    private Integer userId;
    private String username;   // 辅助列

    private String value;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp time;

    private Integer status;

    public UserPayment() {
    }

    public UserPayment(Integer id,Integer userId, Integer paymentId,  String value , Timestamp time, Integer status,String paymentname,String username) {
        this.id = id;
        this.paymentId = paymentId;
        this.paymentname = paymentname;
        this.userId = userId;
        this.username = username;
        this.value = value;
        this.time = time;
        this.status = status;
    }

    public UserPayment(Integer id, String paymentname, String username, String value, Timestamp time, Integer status) {
        this.id = id;
        this.paymentname = paymentname;
        this.username = username;
        this.value = value;
        this.time = time;
        this.status = status;
    }

    public UserPayment(Integer userId, Integer paymentId, String value, Timestamp time, Integer status) {
        this.userId = userId;
        this.paymentId = paymentId;
        this.value = value;
        this.time = time;
        this.status = status;
    }

    public UserPayment(Integer id, Integer userId, Integer paymentId, String value, Timestamp time, Integer status) {
        this.id = id;
        this.userId = userId;
        this.paymentId = paymentId;
        this.value = value;
        this.time = time;
        this.status = status;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPaymentname() {
        return paymentname;
    }

    public void setPaymentname(String paymentname) {
        this.paymentname = paymentname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Integer paymentId) {
        this.paymentId = paymentId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



}